﻿using DevExpress.Xpf.Core;
using DevExpress.XtraReports.UI;
using DevExpress.Xpf.Printing;


namespace QuanLyKho.CommonControl
{
    /// <summary>
    /// Interaction logic for ReportCommonWindow.xaml
    /// </summary>
    public partial class ReportCommonWindow : DXWindow
    {
        public ReportCommonWindow(XtraReport report)
        {
            InitializeComponent();
            XtraReportPreviewModel model = new XtraReportPreviewModel(report);
            documentPreview1.Model = model;
            model.Report.CreateDocument(false);
        }
    }
}
